<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateExpressCompanyTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('express_company', function (Blueprint $table) {
            $table->increments('id');
            $table->string('express_name')->index()->comment('物流公司名称');
            $table->string('express_no')->comment('物流编号');
            $table->string('code_name')->comment('编号名称');
            $table->unsignedTinyInteger('status')->default(0)->comment('状态 1:运营中  2：已停业');
            $table->string('phone')->nullable()->comment('联系电话');
            $table->string('express_logo')->nullable()->comment('物流公司logo');
            $table->string('region_mark')->nullable()->comment('备注');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('express_company');
    }
}
